import './App.css';

import {HashRouter as Router, Switch, Route} from 'react-router-dom';

import IfElse from "./IfElse/IfElse";
import Home from "./homeComponents/home";
import ForceEnum from './ForceEnum/ForceEnum'
import Greedy from "./Greedy/Greedy";

import Dynamic from "./Dynamic/Dynamic";

import Sort from "./Sort/Sort";
import Recursion from "./Recursion/Recursion";
import Search from "./Search/Search";

function App() {
  return (
    <Router basename='/'>
        <Switch>
            <Route path='/LoopIfElse'  component={IfElse}/>
            <Route path='/ForceEnum' component={ForceEnum}/>
            <Route path='/Greedy' component={Greedy}/>
            <Route path='/Recursion' component={Recursion}/>
            <Route path='/Dynamic' component={Dynamic}/>
            <Route path='/Search' component={Search}/>
            <Route path="/Sort" component={Sort}/>
            <Route path='/' component={Home}/>

        </Switch>
    </Router>
  );
}

export default App;
